﻿<Window x:Class="PalettesGallery.MainWindow"
		xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
		xmlns:d3="http://research.microsoft.com/DynamicDataDisplay/1.0"
		xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
		Title="Palettes Gallery" WindowState="Maximized">
	<StackPanel>
		<d3:PaletteControl>
			<d3:DiscretePalette>
				<d3:LinearPaletteColorStep Color="Yellow" Offset="0.33"/>
				<d3:LinearPaletteColorStep Color="Orange" Offset="0.67"/>
				<d3:LinearPaletteColorStep Color="CornflowerBlue" Offset="1"/>
			</d3:DiscretePalette>
		</d3:PaletteControl>

		<d3:PaletteControl>
			<d3:LinearPalette StartColor="GreenYellow" EndColor="OrangeRed">
				<d3:LinearPaletteColorStep Color="Yellow" Offset="0.4"/>
				<d3:LinearPaletteColorStep Color="Orange" Offset="0.6"/>
			</d3:LinearPalette>
		</d3:PaletteControl>

		<GroupBox Margin="10">
			<GroupBox.Header>
				<TextBlock Margin="10" FontSize="20">Editor</TextBlock>
			</GroupBox.Header>
			<d3:DiscretePaletteEditor Margin="10">
				<d3:DiscretePalette>
					<d3:LinearPaletteColorStep Color="Yellow" Offset="0.4"/>
					<d3:LinearPaletteColorStep Color="Orange" Offset="0.6"/>
					<d3:LinearPaletteColorStep Color="CornflowerBlue" Offset="1"/>
				</d3:DiscretePalette>
			</d3:DiscretePaletteEditor>
		</GroupBox>
	</StackPanel>
</Window>
